<template>
  <div>
    <h1>vue中获取事件对象</h1>
    <div>
      <button @click="clickFn">点击</button>
      <!-- $event 是原来事件拥有的参数 -->
      <button @click="clickFn2(10,$event)">点击</button>
      
    </div>
  </div>

</template>

<script>
export default {
  methods: {
   clickFn(e) {
    console.log('clickFn触发了',e);
   },
   clickFn2(num,even) {
    console.log(num,even);
   }
  }

}
</script>

<style>

</style>